package vendas.dto;

import gminet.infra.dao.TransferObject;

import java.util.Date;

public class User extends TransferObject {

    private static final long serialVersionUID = -4281714227227034200L;

    private String name;
    private String email;
    private String password;
    private UserStatus status;
    private UserType type;
    private Date creationDate;
    private Date lastAcess;

    public User() {
        super();
    }

    public User(int id) {
        this();
        setId(id);
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public UserStatus getStatus() {
        return status;
    }

    public void setStatus(UserStatus status) {
        this.status = status;
    }

    public UserType getType() {
        return type;
    }

    public void setType(UserType type) {
        this.type = type;
    }

    public Date getCreationDate() {
        return creationDate;
    }

    public void setCreationDate(Date creationDate) {
        this.creationDate = creationDate;
    }

    public Date getLastAcess() {
        return lastAcess;
    }

    public void setLastAcess(Date lastAcess) {
        this.lastAcess = lastAcess;
    }

}
